﻿/*=================================================================================
	TASK 1:                                                         {IO Text Files}
	Write a program that reads a text file and prints on the console its odd lines.
==================================================================================*/

using System;
using System.IO;

class PrintOddLines
{
    static void Main()
    {
        StreamReader sw = new StreamReader("../../temp.txt");//the dir of the .cs file

        using (sw)
        {
            int lineNumber = 1;
            string line = sw.ReadLine();
            while (line != null)
            {
                if (lineNumber % 2 != 0)
                {
                    Console.WriteLine(line);
                }
                lineNumber++;
                line = sw.ReadLine();
            }
        }
    }
}

